package com.fxb.learn.logger;

import java.awt.datatransfer.ClipboardOwner;
import java.util.logging.*;

/**
 * JDK Logger
 *
 * @author wangxiyue
 * @date 2020-09-16 21:20
 * @since 1.0.0
 */
public class JDKLogger {

    private static Logger logger = Logger.getLogger(JDKLogger.class.toString());

    static {
        Handler consoleHandler = new ConsoleHandler();
        consoleHandler.setLevel(Level.CONFIG);
        logger.addHandler(consoleHandler);
    }

    public static void main(String[] args) {

        logger.finest("finest");
        logger.finer("finer");
        logger.fine("fine");
        logger.config("config");
        logger.info("info");
        logger.warning("warning");
        logger.severe("severe");

    }

}
